package prototype;

/**
 * @author wcj
 * @Date 2021/6/25 21:00
 * @Version 1.0
 */
public class Person implements Cloneable {

 private Head head;

 public Person(Head head) {
  this.head = head;
 }

 @Override
 protected Object clone() throws CloneNotSupportedException {
  Person person = (Person) super.clone();
  person.head = (Head) this.head.clone();
  return person;
 }
}
